import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import {ExamineRecordQuery,invitationalevision,SubExamine,ManExamine,CreditscoreRecordQuery,FormRecordQuery} from '@/api/system/examineRecord/types'

/**
 * 审核记录List
 *
 * @param queryParams
 */
export function casualCheckRecordPages(queryParams?: ExamineRecordQuery): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check_record/pages',
    method: 'get',
    params: queryParams,
  });
}
export function creditscoreEdit(queryParams?: FormRecordQuery): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casualEngineer/creditscoreEdit',
    method: 'get',
    params: queryParams,
  });
}
export function invitationalevision(queryParams?: invitationalevision): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casualPromotions/invitationalevision',
    method: 'get',
    params: queryParams,
  });
}
/**
 * 业务类型下拉框
 *
 * @param queryParams
 */
export function businessOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/businessOptions',
    method: 'get',
  });
}
/**
 * 查询用户信用分记录
 *
 * @param queryParams
 */
export function creditscoreRecord(queryParams?:CreditscoreRecordQuery): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casualEngineer/creditscoreRecord',
    method: 'get',
    params: queryParams,
  });
}
/**
 * 审核人类型下拉框
 *
 * @param queryParams
 */
export function checkOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/checkOptions',
    method: 'get',
  });
}
/**
 * 用户下拉框
 *
 * @param queryParams
 */
export function engineerOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/engineerOptions',
    method: 'get',
  });
}
/**
 * 外部-企业下拉框
 *
 * @param queryParams
 */
export function enterpriseOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/enterpriseOptions',
    method: 'get',
  });
}
/**
 * 内部人员下拉框
 *
 * @param queryParams
 */
export function internalOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/internalOptions',
    method: 'get',
  });
}
/**
 * 外部-个人下拉框
 *
 * @param queryParams
 */
export function personOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/personOptions',
    method: 'get',
  });
}
/**
 * 提交审核
 *
 * @param queryParams
 */
export function casualCheckRecordAdd(queryParams:SubExamine): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check_record/add',
    method: 'post',
    params:queryParams
  });
}
/**
 * 管理审核
 *
 * @param queryParams
 */
export function casualCheckRecordExamine(queryParams:ManExamine): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check_record/examine',
    method: 'post',
    params:queryParams
  });
}
/**
 * 审核
 *
 * @param queryParams
 */
export function casualCheckRecordRejectReview(queryParams:ManExamine): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check_record/rejectReview',
    method: 'post',
    params:queryParams
  });
}
